home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
taropyon
/
guilib3
/
inc
/
guidefs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
3KB
|
127 lines
/* :*****************************************************************
: "guidefs.h"
:*****************************************************************
*/
#ifndef _GUIDEFS_H
#define _GUIDEFS_H
#ifndef _SPDEFS_H
# include "spdefs.h"
#endif
extern CONST void *NULSTR;
#define SCXMAX (640)
#define SCYMAX (480)
#define SWXMAX (1024)
#define SWYMAX (512)
#define C_BLACK 0
#define C_BLUE 1
#define C_RED 2
#define C_MAGENTA 3
#define C_GREEN 4
#define C_CYAN 5
#define C_YELLOW 6
#define C_WHITE 7
#define C_HBLACK 8
#define C_HBLUE 9
#define C_HRED 10
#define C_HMAGENTA 11
#define C_HGREEN 12
#define C_HCYAN 13
#define C_HYELLOW 14
#define C_HWHITE 15
#define C_THROUGH 0
#define C_MBLACK 1
#define PSET 0
#define PRESET 1
#define OR 2
#define AND 3
#define XOR 4
#define NOT 5
#define OPAQUE 9
#define MASKSET 13
#define MASKRESET 14
#define MASTNOT 15
extern char *EgbPtr;
extern char *MosPtr;
extern char *SndPtr;
typedef struct
{ SHORT x, y;
} POINT;
typedef struct
{ SHORT x1, y1, x2, y2;
} FRAME;
typedef struct
{ SHORT x0, y0, xs, ys;
} FRAME2;
typedef SHORT COLOR;
typedef struct
{ int md;
FRAME fr; /* 画面枠 */
FRAME sc; /* 表示スクリーンサイズ */
FRAME view; /* ビューポート */
POINT dspstart; /* 表示開始位置 */
FRAME dlgArea; /* ダイアログ表示範囲 */
} SCINF;
typedef struct /* ディスプレイコントール構造体 */
{
USHORT ds; /* DS */
SHORT dmy_1;
UCHAR page0; /* page 0 側の解像度 */
UCHAR page1; /* page 1 側の解像度 */
UCHAR writePage; /* 書き込みページ */
UCHAR displayPage; /* 表示ページ */
UCHAR priority; /* 表示プライオリティ */
UCHAR mode; /* 色数 */
USHORT width; /* vram 横サイズ */
SCINF scinf[2]; /* 画面情報 */
UCHAR sysPage; /* システム行表示ページ */
char dmy_2[3];
COLOR white; /* 白色 */
COLOR black; /* 黒色 */
COLOR gray; /* 灰色 */
COLOR xor; /* 反転色 */
COLOR shadow; /* 影 */
COLOR dark; /* 灰色2 */
UCHAR fntype; /* フォントタイプ */
UCHAR defFnt; /* デフォルトフォント */
char sdkAtFlag; /* サイドワーク起動中?? */
char pclAtFlag; /* 子プロセス起動中?? */
} DSPCTRL;
extern DSPCTRL DspCtrl;
typedef struct
{
int ignore; /* 表示状態 */
int dsp; /* 表示フラグ */
POINT point; /* カーソル座標 */
FRAME move; /* カーソル移動範囲 */
int page; /* 書き込みページ */
int curptn; /* カーソルパターンNo. */
int scrollPage; /* スクロールページ */
} MOSINF; /* マウス情報構造体 */
extern MOSINF MosInf;
#endif